package com.doadway.dwcms.assistant.web.action;

import java.util.Map;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.doadway.dwcms.assistant.biz.AcquisitionBiz;
import com.doadway.dwcms.assistant.pojo.Acquisition;
import com.doadway.dwcms.assistant.pojo.dto.AdvertisingDTO;
import com.doadway.dwcms.core.config.biz.SiteBiz;
import com.doadway.dwcms.core.user.biz.LogBiz;
@Controller
@RequestMapping("/admin/assistant/acquisition")
public class AcquisitionControl {
	@Resource
	LogBiz logBiz;		
	@Resource
	private AcquisitionBiz acquisitionBiz;
	@Resource
	private SiteBiz siteBiz;	
	Acquisition acquisition=new Acquisition();	
	@RequestMapping("o_save")
	public String saveAcquisition(HttpServletRequest request,AdvertisingDTO newAdvertisingDTO,Map<String, Object> model){
		return "acquisition/acquisition_edit";
	}
	
	@RequestMapping("v_list")
	public String findAllAcquisition(HttpServletRequest request,HttpServletResponse response,Map<String, Object> model){
		return "acquisition/acquisition_list";
	}
	
	@RequestMapping("o_del")
	public String delAcquisition(HttpServletRequest request){
		return "redirect:/admin/assistant/acquisition/v_list.do";
		
	}
	@RequestMapping("v_edit")
	public String findAcquisition(HttpServletRequest request,Map<String, Object> model){
		return "acquisition/acquisition_edit";
	}	
	@RequestMapping("v_add")
	public String showAddAcquisition(Map<String, Object> model){
		return "acquisition/acquisition_edit";
	}	
}
